//
//  TYCyclePagerViewCell.swift
//  xiantian
//
//  Created by 鲜恬科技 on 2019/9/20.
//  Copyright © 2019 鲜恬科技. All rights reserved.
//

import UIKit


class TYCyclePagerViewCell: UICollectionViewCell {
    var imgView = UIImageView()
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.imgView = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: frame.size.width, height: frame.size.height))
        self.imgView.contentMode = .scaleAspectFit
        self.imgView.backgroundColor = UIColor.clear
        self.imgView.isUserInteractionEnabled = true
        self.contentView.addSubview(self.imgView)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        self.imgView.frame = self.bounds
    }
}
